﻿<%@ Page Language="C#" MasterPageFile="~/PaginaInicio.master" AutoEventWireup="true" CodeFile="~/Alta_Cliente_Web.aspx.cs" Inherits="Alta_Cliente_Web"  Title="Alta de Cliente" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>



<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
        
    <style type="text/css">

        .style27
        {
            color: #FFFFFF;
            height: 15px;
            font-family: Tahoma;
            font-size: medium;
        }
        .style28
        {
            height: 217px;
        }
        .style12
        {
            font-size: xx-small;
        }
        .style55
        {
            border: medium solid #00334C;
            width: 46px;
            color: #CCCCCC;
            font-size: small;
            font-family: Tahoma;
            text-align: left;
        }
        .style47
        {
            border: medium solid #00334C;
            width: 5px;
            color: #CCCCCC;
            font-size: small;
            font-family: Tahoma;
        }
        .style56
        {
            width: 1px;
        }
        .style53
        {
            border: medium solid #0085C6;
            margin: 0px;
            width: 46px;
            color: #CCCCCC;
            font-size: small;
            font-family: Tahoma;
            text-align: left;
            height: 16px;
        }
        .style54
        {
            border: medium solid #0085C6;
            margin: 0px;
            width: 5px;
            color: #CCCCCC;
            font-size: small;
            font-family: Tahoma;
            height: 16px;
        }
        .style57
        {
            width: 341px;
        }
        .style58
        {
            width: 457px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width: 100%; height: 294px;">
        <tr>
            <td class="style57">
                &nbsp;
            </td>
            <td class="style58" style="text-align: center">
    
    
    
    <asp:Panel ID="Panel5" runat="server" Height="464px" style="margin-left: 0px" 
        Width="561px" HorizontalAlign="Justify">
        <table style="width:101%; height: 283px;">
            <tr>
                <td bgcolor="#C62D73" class="style27" 
                    style="border-bottom-color: #000000; border-bottom-width: thin">
                    Registro Cliente</td>
            </tr>
            <tr style="border-bottom-style: solid; border-color: #00334C">
                <td bgcolor="#00334C" class="style28" align="char" 
                    style="border-bottom-style: none">
                    <asp:Panel ID="Panel4" runat="server" BackColor="#00547D" BorderColor="Black" 
                        BorderStyle="None" CssClass="style12" Height="188px" 
                        style="margin-left: 15px; margin-right: 0px; margin-top: 0px;" 
                        Width="529px" BorderWidth="15px">
                        <table bgcolor="#00547D" cellspacing="0" class="style1" 
                            frame="above" 
                            
                            style="border: thin solid #00547D; margin: 0px; width: 522px; height: 186px;" 
                            align="left" width="30">
                            <tr>
                                <td class="style55" style="border: medium solid #00547D;">
                                    <asp:TextBox ID="txtNombreUsuario" runat="server" BackColor="#0085C6" 
                                        BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                                        Height="20px" OnClick="Limpiar(this);" Width="200px"></asp:TextBox>                                 
                                    <cc1:FilteredTextBoxExtender ID="txtNombreUsuario_FilteredTextBoxExtender" 
                                        runat="server" Enabled="True" TargetControlID="txtNombreUsuario" 
                                        ValidChars="qwertyuiopasdfghjklzxcvbnm_1234567890">
                                    </cc1:FilteredTextBoxExtender>
                                    <cc1:TextBoxWatermarkExtender ID="txtNombreUsuario_TextBoxWatermarkExtender" 
                                        runat="server" Enabled="True" TargetControlID="txtNombreUsuario" 
                                        WatermarkText="Nombre de Usuario">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td class="style47" style="border: medium solid #00547D;">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                        ControlToValidate="txtNombreUsuario" Display="Dynamic" 
                                        ValidationGroup="1">*</asp:RequiredFieldValidator>
                                </td>
                                <td class="style56" rowspan="9" style="border: medium solid #00547D;" 
                                    align="left" valign="top">
                                    <img alt="" src="Imagenes/linea%20vertical.png" 
                                        style="width: 1px; height: 170px" /></td>
                                <td align="left" rowspan="5" 
                                    style="border: medium solid #00547D; font-family: Tahoma; color: #FFFFFF; font-size: x-small;" 
                                    valign="top">
                                    <span>
                                    <asp:Label ID="Label8" runat="server" style="font-style: italic" 
                                        
                                        Text="Los datos solicitados a su izquierda son necesarios para posibilitar mejorar su relación y atención por parte del vendedor."></asp:Label>
                                    <br />
                                    <br />
                                    <br />
                                    
                                    
                                    
                                    <br />
                                    <br />
                                    <br />
                                    <br />
                                    <br />
                                    Muchas gracias.<br />
                                    Saluda atte.
                                    <br />
                                    </span></td>
                            </tr>
                            
                            <tr style="border: medium dotted #CC0099;">
                                <td class="style53" style="border: medium solid #00547D;">
                                    <asp:TextBox ID="txtContrasenia" runat="server" BackColor="#0085C6" 
                                        BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                                        FocusOut = "Rellenar(this);" Height="20px" OnClick="Limpiar(this);" 
                                        Width="200px" TextMode="Password"></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="txtContrasenia_TextBoxWatermarkExtender" 
                                        runat="server" Enabled="True" TargetControlID="txtContrasenia" 
                                        WatermarkText="Contraseña">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td class="style54" style="border: medium solid #00547D;">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                        ControlToValidate="txtContrasenia" Display="Dynamic" 
                                        ValidationGroup="1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            
                            <tr style="border: medium dotted #CC0099;">
                                <td class="style53" style="border: medium solid #00547D;">
                                    <asp:TextBox ID="txtNombre" runat="server" BackColor="#0085C6" 
                                        BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                                        FocusOut = "Rellenar(this);" Height="20px" OnClick="Limpiar(this);" Width="200px"></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="txtNombre_TextBoxWatermarkExtender" 
                                        runat="server" Enabled="True" TargetControlID="txtNombre" 
                                        WatermarkText="Nombre" >
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td class="style54" style="border: medium solid #00547D;">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                        ControlToValidate="txtNombre" Display="Dynamic" 
                                        ValidationGroup="1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="border: medium dotted #CC0099;">
                                <td class="style55" style="border: medium solid #00547D;">
                                    <asp:TextBox ID="txtApellido" runat="server" BackColor="#0085C6" 
                                        BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                                        Height="20px" OnClick="Limpiar(this);" Width="200px" 
                                        ></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="txtApellido_TextBoxWatermarkExtender" 
                                        runat="server" Enabled="True" TargetControlID="txtApellido" 
                                        WatermarkText="Apellido">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td class="style47" style="border: medium solid #00547D;">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                        ControlToValidate="txtApellido" Display="Dynamic" 
                                        ValidationGroup="1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr style="border: medium dotted #CC0099;">
                                <td class="style55" style="border: medium solid #00547D;">
                                    <asp:TextBox ID="txtTelefono" runat="server" BackColor="#0085C6" 
                                        BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                                        Height="20px" OnClick="Limpiar(this);" Width="200px" MaxLength="25" 
                                        ></asp:TextBox>
                                    <cc1:TextBoxWatermarkExtender ID="txtTelefono_TextBoxWatermarkExtender" 
                                        runat="server" Enabled="True" TargetControlID="txtTelefono" 
                                        WatermarkText="Teléfono">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td class="style47" style="border: medium solid #00547D;">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                        ControlToValidate="txtTelefono" Display="Dynamic" 
                                        ValidationGroup="1">*</asp:RequiredFieldValidator>
                                    <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                        ControlToValidate="txtTelefono" Display="Dynamic" Operator="DataTypeCheck" 
                                        Type="Integer" ValidationGroup="1" 
                                        ErrorMessage="Ingrese solo numeros de telefono">*</asp:CompareValidator>
                                </td>
                            </tr>
                            <tr>
                                <td class="style55" style="border: medium solid #00547D;">
                                    <asp:TextBox ID="txtEMail" runat="server" BackColor="#0085C6" 
                                        BorderStyle="None" BorderWidth="0px" Font-Italic="True" ForeColor="#CCCCCC" 
                                        Height="20px" OnClick="Limpiar(this);" Width="200px"></asp:TextBox>
                                    <cc1:FilteredTextBoxExtender ID="txtEMail_FilteredTextBoxExtender" 
                                        runat="server" FilterType="Numbers" 
                                        TargetControlID="txtEMail" Enabled="False">
                                    </cc1:FilteredTextBoxExtender>
                                    <cc1:TextBoxWatermarkExtender ID="txtEMail_TextBoxWatermarkExtender" 
                                        runat="server" Enabled="True" TargetControlID="txtEMail" 
                                        WatermarkText="e-mail">
                                    </cc1:TextBoxWatermarkExtender>
                                </td>
                                <td class="style47" style="border: medium solid #00547D;">
                                    
                                    <span>
                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                        ControlToValidate="txtEMail" Display="Static" 
                                        ErrorMessage="Ingrese e-mail Valido" ValidationExpression=".*@.*\.*" 
                                        ValidationGroup="1">*</asp:RegularExpressionValidator>
                                    </span>
                                    
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" 
                                        ControlToValidate="txtEMail" Display="Dynamic" ValidationGroup="1">*</asp:RequiredFieldValidator>
                                    
                                </td>
                            </tr>
                        </table>
                    </asp:Panel>
                </td>
            </tr>
            <tr>
                <td align="right" bgcolor="#00334C" 
                    style="border-style: solid none none none; border-color: #00334C;">
                    <asp:Label ID="lblEnviar" runat="server" ForeColor="White"></asp:Label>
                    <span style="border-style: none">
                   
                    <asp:Button ID="btnEnviar" runat="server" BackColor="#0085C6" BorderStyle="None" 
                        Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" Height="23px"
                        ValidationGroup="1"
                        style="margin-top: 0px" Text="Aceptar" Width="65px" 
                        onclick="btnEnviar_Click"  />
                        &nbsp;&nbsp;
                        <asp:Button ID="btnCancelar" runat="server" BackColor="#0085C6" BorderStyle="None" 
                        Font-Bold="True" Font-Italic="False" ForeColor="#CCCCCC" Height="23px"
                       
                        style="margin-top: 0px" Text="Cancelar" Width="65px" onclick="btnCancelar_Click" 
                          />
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" 
                        style="margin-top: 0px" ValidationGroup="1" />
                    &nbsp;&nbsp;&nbsp;<asp:ScriptManager ID="ScriptManager1" runat="server">
                    </asp:ScriptManager>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
                </td>
            </tr>
        </table>
    </asp:Panel>
    
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        </table>
    
    
    
    <script type="text/javascript" language="JavaScript">

function Limpiar(obj)
{
    if(obj.value=='Nombre'||obj.value=='Apellido'||obj.value=='Correo Electrónico'||obj.value=='Teléfono'||obj.value=='Teléfono Alternativo'){
    obj.value='';
    }

     
}
function Rellenar(obj)
{
    if(obj.value==''){
    obj.value='faltan datos';
    }

     
}

function Hola(obj)
{
    
     alert("Haz seleccionado la opcion ");
     
}
function selectValueItem(ddlItem)
    {
        var e = document.getElementById('ctl00_Main_CascadingControl1_ddlItem');
        txtItem.value = e.options[e.selectedIndex].value;
                             
    }
    
    function alerta()
    {
        alert("Haz seleccionado la opcion ");                    
    }
</script>


</asp:Content>


